from flask import render_template, jsonify
from flask import request

from info.modules.admin import admin_blu
from info.response_code import RET


@admin_blu.route('/review_detail')
def news_review_detail():

    """
    1.通过request.args来获取new_id
    2.通过news_id查询新闻
    3.组织数据
    :return:
    """

    news_id = request.args.get('news_id')
    if not news_id:
        return jsonify(errno=RET.PARAMERR ,errmsg='')


    return render_template('admin/../../templates/news/news_review_detail.html')
    pass